#ifndef Image_Decoder_h
#define Image_Decoder_h

#include <GLES2/gl2.h>
#include "Engine.h"

class ImageData
{
public:
	GLuint width;
	GLuint height;
	GLuint nChannels; // number of Channels
	char* data; // the Image Data

	ImageData(): width(0), height(0), nChannels(0), data(0){};
	ImageData& operator=(const ImageData &image)
	{
		width = image.width;
		height = image.height;
		nChannels = image.nChannels;
		data = image.data;
		return *this;
	};
	// delete current image data
	~ImageData()
	{
		SAFE_DEL(data);
	};
};


#endif